﻿<!DOCTYPE html>
<html style="height: 100%">
<head>
    <meta charset="utf-8">
</head>
<body style="height: 100%; margin: 0">
    <div id="container" style="height: 300px;"></div>
    <script type="text/javascript" src="js/echarts-all-3.js"></script>
    <script type="text/javascript" src="js/ecStat.min.js"></script>
    <script type="text/javascript" src="js/dataTool.min.js"></script>
    <script type="text/javascript" src="js/china.js"></script>
    <script type="text/javascript" src="js/world.js"></script>
    <script type="text/javascript" src="js/api.js"></script>
    <script type="text/javascript" src="js/bmap.min.js"></script>
    <script type="text/javascript">
var dom = document.getElementById("container");
var myChart = echarts.init(dom);
var app = {};
option = null;
app.title = '地区广告业务开展情况';

option = {
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'cross',
            crossStyle: {
                color: '#999'
            }
        }
    },
    toolbox: {
        feature: {
            dataView: {show: true, readOnly: false},
            magicType: { show: true, type: ['line', 'bar'] },
            restore: {show: true},
            saveAsImage: {show: true}
        }
    },
    legend: {
        data: ['日均指标', '实际执行']
    },
    xAxis: [
        {
            type: 'category',
            data: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20 ', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30'],
            axisPointer: {
                type: 'shadow'
            }
        }
    ],
    yAxis: [
        {
            type: 'value',
            name: '日均指标',
            min: 0,
            max: 20,
            interval: 2,
            axisLabel: {
                formatter: '{value} '
            }
        },
        {
            type: 'value',
            name: '实际执行',
            min: 0,
            max: 20,
            interval: 2,
            axisLabel: {
                formatter: '{value} %'
            }
        }
    ],
    series: [
        {
            name: '日均指标',
            type: 'line',
            yAxisIndex: 0,
            data: [7, 17, 9, 2, 2, 6, 3, 8, 10, 6, 15, 8, 1, 3, 1, 6, 2, 9, 8, 4, 4, 7, 0, 0, 1, 1, 2, 3, 4, 5]
        },
        {
            name: '实际执行',
            type: 'line',
            yAxisIndex: 1,
            data: [2, 7, 4, 0, 0, 6, 3, 8, 10, 6, 15, 8, 1, 3, 1, 6, 2, 9, 8, 4, 4, 7, 0, 0, 1, 1, 2, 3, 4, 5]
        }
    ]
};
;
if (option && typeof option === "object") {
    myChart.setOption(option, true);
}
    </script>
</body>
</html>